@extends('layout.index')

@section('content')
<div class="mws-panel grid_8">
    	<div class="mws-panel-header">
        	<span>无限分类</span>
        </div>
        <div class="mws-panel-body no-padding">
        	<form class="mws-form" action="/cate/insert" method='post'>
        		<div class="mws-form-inline">
        			<div class="mws-form-row">
        				<label class="mws-form-label">分类名称</label>
        				<div class="mws-form-item">
        					<input type="text" name='name' class="small">
        				</div>
        			</div>
					
        			
        			<div class="mws-form-row">
        				<label class="mws-form-label">父级分类</label>
        				<div class="mws-form-item">
        					<select class="small" name='pid'>
        						<option value='0'>请选择</option>
								@foreach($row as $k=>$v)
        						<option value="{{$v->id}}" >{{$v->name}}</option>
        						@endforeach
        					</select>
        				</div>
        			</div>
        			
        			
        		</div>
        		<div class="mws-button-row">
        			{{ csrf_field() }}
        			<input type="submit" value="提交" class="btn btn-danger">
        			<input type="reset" value="重置" class="btn ">
        		</div>
        	</form>
        </div>    	
    </div>

@endsection